package com.fowo.api.sys.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Schema(title = "创建系统菜单")
@Data
public class CreateSysMenu {
    private Long parentMenuId;

    private List<Long> appIds;

    @NotEmpty
    @Size(max = 50)
    private String menuName;

    @Size(max = 255)
    private String titleKey;

    @NotEmpty
    private String menuType;

    private String authority;

    @NotNull
    private Integer sort;

    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 是否不显示在菜单栏中
     */
    private Boolean hideInMenu;

    /**
     * 路由地址
     */
    private String url;

    /**
     * 组件地址
     */
    private String component;

    /**
     * 参数
     */
    private String params;
}
